package com.zjff.myshop.mapper;

import com.zjff.myshop.entity.User;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface UserMapper {

    // 增
    int insert(User user);

    // 删
    int deleteByPrimaryKey(Integer id);

    int deleteBatch(Integer[] ids);

    // 改
    int update(User user);

    // 查
    User selectByPrimaryKey(Integer id);

    User selectByName(String name);

    User selectByPhone(String phone);

    List<User> selectPage(HashMap map);

}